#include"shmCom.hpp"
using namespace shm;

int main()
{
    myshm shms(serve);
    std::cout<<shms.getid()<<std::endl;
    std::cout<<shms.getaddr()<<std::endl;
    shms.Attach();
    printf("client say: %s\n",(char*)shms.getaddr());
    sleep(5);
    shms.RmShm();
    return 0;
}